package cn.yr.blog.controller.web;

import cn.yr.blog.service.CountService;
import cn.yr.common.core.domain.vo.CountVo;
import cn.yr.common.exception.ret.Ret;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
* @Title: CountController
* @Description: 统计
* @author Lang
* @date 2020/3/29 17:11
*/

@Api(tags = "web统计")
@RequestMapping("/web/count")
@RestController
public class WebCountController {

	@Resource
	private CountService countService;

	@GetMapping("/getCount")
	public Ret<CountVo> getCount(){
		CountVo countVo = countService.getCount();
		return Ret.success(countVo);
	}
}

